package com.big.common.core;

import com.big.common.core.config.JacksonConfig;
import com.big.common.core.exception.GlobalExceptionHandler;
import com.big.common.core.idempotent.IdempotentAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 *
 * </p>
 *
 * @author 山归岿
 * @create 2025-06-22-14:38
 */
@Configuration
public class CoreConfig {

    @Bean
    public GlobalExceptionHandler globalExceptionHandler() {
        return new GlobalExceptionHandler();
    }

    @Bean
    public IdempotentAspect idempotentAspect() {
        return new IdempotentAspect();
    }

    @Bean
    public JacksonConfig jacksonConfig() {
        return new JacksonConfig();
    }
}
